gtkimcontextsimple.c: Use X11_DATA_PREFIX only on X11/Wayland
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 12 Nov 2015 12:20:36 +0000 (20:20 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 Nov 2015 12:39:54 +0000 (07:39 -0500)
commitd01ea18dc3a9acc98fc133ddb53ddc838e4e18f9
treeb868c09e8ac15b54a3d43a1053ec93586dd63449
parent1190a61c276a122e9ebc300420b13037c1da4bac
gtkimcontextsimple.c: Use X11_DATA_PREFIX only on X11/Wayland

Only use the hard-coded build-time path given by X11_PREFIX on X11 and
Wayland where a X11 package is normally available.  On other platforms,
get the datadir of the running system and mimic the behavior by
constructing the path dynamically.  This avoids hardcoding the path for
searching for compose tables where we want to have relocatability.

This fixes the build on Windows/MSVC as well, where we don't normally have
any X11 packages available.

https://bugzilla.gnome.org/show_bug.cgi?id=757984
gtk/gtkimcontextsimple.c